package com.hongye.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.common.utils.PageUtils;
import com.hongye.common.utils.Query;

import com.hongye.house.dao.TypeHomeDao;
import com.hongye.house.entity.TypeHomeEntity;
import com.hongye.house.service.TypeHomeService;


@Service("typeHomeService")
public class TypeHomeServiceImpl extends ServiceImpl<TypeHomeDao, TypeHomeEntity> implements TypeHomeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TypeHomeEntity> page = this.page(
                new Query<TypeHomeEntity>().getPage(params),
                new QueryWrapper<TypeHomeEntity>()
        );

        return new PageUtils(page);
    }

}